"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var axios_1 = require("axios");
var unit_1 = require("../../unit");
var domainName = 'http://localhost';
var port = 3002;
var host = domainName + ':' + port;
var Encode = unit_1.default.Encode;
exports.default = {
    post: {
        getAnthology: function (data) {
            if (data === void 0) { data = {}; }
            return axios_1.default.post(host + '/get/anthology', Encode.encode(data));
        },
        getArticle: function (data) { return axios_1.default.post(host + '/get/article/content', Encode.encode(data)); },
        getArticleAll: function (data) { return axios_1.default.post(host + '/get/articleAll', Encode.encode(data)); },
    },
    get: {
        getArticleContent: function (data) { return axios_1.default.get(host + '/get/article/' + data.id); },
    }
};
